﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using SharedGenomics.Workbench.Core;
using SharedGenomics.Core;
using SharedGenomics.Workbench.PresentationModel;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public partial class CategoryValueView : View, ICategoryValueView
    {
        public CategoryValueView()
        {
            InitializeComponent();
        }

        public string SelectedValue
        {
            get { return (string)this.cmbValues.SelectedValue; }
        }

        public IEnumerable<ValueDisplayItem<string>> CategoryValues
        {
            set { this.bindingSource.DataSource = value; }
        }

        public event EventHandler CloseRequested;

        private void btRemove_Click(object sender, EventArgs e)
        {
            this.CloseRequested.Raise(this);
        }
    }
}
